//
//  CartDataTool.h
//  JiaoX
//
//  Created by jiaoxiu－005 on 15/1/14.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "JXBaseTool.h"
#import "CartInfo.h"
#import "AddressAndCheckProdInfo.h"
#import "AddOrderRes.h"
@interface CartDataTool : JXBaseTool
/**
 *  获取购物车信息
 */
+ (void)cartInfoWithParam:(NSDictionary *)param success:(void (^)(CartInfo *result))success failure:(void (^)(NSError *error))failure;
/**
 *  提交购物车所有的数据
 */
+ (void)postCartProdsWithParam:(NSDictionary *)param success:(void (^)(CartInfo *result))success failure:(void (^)(NSError *error))failure;
/**
 *  添加单品&服务器
 */
+ (void)addCartProdWithParam:(NSDictionary *)param success:(void (^)(CartInfo *result))success failure:(void (^)(NSError *error))failure;
/**
 *  删除单品&服务器
 */
+ (void)deleteCartProdWithParam:(NSDictionary *)param success:(void (^)(CartInfo *result))success failure:(void (^)(NSError *error))failure;
/**
 *  获取结算中心需要的数据
 */
+ (void)getAccountCenterDataWithParam:(NSDictionary *)param success:(void (^)(AddressAndCheckProdInfo *result))success failure:(void (^)(NSError *error))failure;
/**
 *  新增订单
 */
+ (void)addOrderWithParam:(NSDictionary *)param success:(void (^)(AddOrderRes *result))success failure:(void (^)(NSError *error))failure;
@end
